package oo.day03.practice;

public class Test {

	public static void main(String[] args) {
		Tetromino t = new Z (1,2);
		printWall(t);
	}

	public static void printWall(Tetromino t) {
		Cell[] cells = t.cells;
		for (int i = 0; i < 20; i++) {
			for(int j = 0; j < 10;j++) {
				boolean flag = false;
				for(int k = 0; k < cells.length; k++) {
					if(i == cells[k].row && j == cells[k].col) {
						flag = true;
					}
				}
				if(flag) {
					System.out.print("* ");
				}else {
					System.out.print("_ ");
				}
			}
			System.out.println();
			
		}
	}

}
